package com.app.medicalcontrol.fragment.User;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.app.medicalcontrol.R;
import com.app.medicalcontrol.basis.BaseMainFragment;
import com.app.medicalcontrol.fragment.User.child.UserCenterFragment;

/**
 * Created by YoKeyword on 16/6/3.
 */
public class UserFragment extends BaseMainFragment {

    public static UserFragment newInstance() {
        UserFragment fragment = new UserFragment();
        return fragment;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_tab_base, container, false);
        return view;
    }

    @Override
    public void onLazyInitView(@Nullable Bundle savedInstanceState) {
        super.onLazyInitView(savedInstanceState);

        if (findChildFragment(UserCenterFragment.class) == null) {
            loadRootFragment(R.id.fl_first_container, new UserCenterFragment());
        }
    }
}
